home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / video / security / Makefile < prev    next >
Encoding:
Makefile  |  1994-08-02  |  2.1 KB  |  116 lines

  1. #!smake
  2. include /usr/include/make/commondefs
  3. #
  4. # To make this program, you must have installed :
  5. #    ViewKit_dev
  6. #    c++_dev
  7. #    c_dev
  8. #    compiler_dev
  9. #    dev
  10. #    dmedia_dev
  11. #    gl_dev
  12. #    motif_dev
  13. #    x_dev
  14. #
  15. #    dps_dev (optional)
  16. #    quicktime_dev (optional)
  17. #
  18. # This makefile interogates various environment variables
  19. # to determine what to build. If they are changed, you 
  20. # must 'make clobber' before making again.
  21. #
  22. # QT
  23. #    enables the use of Quicktime movie formats.
  24. #    This variable should be set if quicktime_dev
  25. #    is on the system.
  26. #
  27. # DPS
  28. #    enables the use of Display Postscript for putting
  29. #    time and date stamps on the movie images.
  30. #    This varialbe shoudl be set if dps_dev is installed
  31. #    on the system.
  32. #
  33. # DEBUG
  34. #    compiles with debug enabled.
  35. #
  36. #
  37. #TARGETS = security security.z
  38. TARGETS = security
  39.  
  40. C++FILES = main.C \
  41.     pref.C \
  42.     startStop.C \
  43.     compressPanel.C \
  44.     security.C \
  45.     video.C \
  46.     monitor.C \
  47.     movie.C \
  48.     audio.C \
  49.     ${NULL}
  50.  
  51. QT ?= no
  52. #if $(QT) == "no"
  53. LIBQT = 
  54. QTDEFS = -UQT
  55. #else
  56. LIBQT = -lqt
  57. QTDEFS = -DQT
  58. #endif
  59.  
  60. DPS ?= no
  61. #if $(DPS) == "no"
  62. DPSDEFS = -UDPS
  63. DPSLIBS =
  64. #else
  65. CFILES = title.c titleWraps.c
  66. DPSDEFS = -DDPS
  67. DPSLIBS = -ldpstk -ldps
  68. #endif
  69.  
  70. DEBUG ?= no_debug
  71. #if $(DEBUG) == "no_debug"
  72. DEBUGDEFS = -UDEBUG
  73. OPTIMIZER = -O0
  74. DBG = 
  75. #else
  76. DEBUGDEFS = -DDEBUG
  77. OPTIMIZER = -g
  78. DBG = _d
  79. DBG = 
  80. #endif
  81.  
  82. MIPS2 = 
  83. LD_QUICKSTART_INFO = 
  84. MEDIALIBS = -lmovie -ldmedia ${LIBQT} -laudio -lcl -lawareaudio
  85. VLIBS = -lvl
  86. VKLIBS = -lvk${DBG} -lvkmsg${DBG} -lXpm -lvkhelp${DBG} -lSgm
  87. XLIBS = ${DPSLIBS} -lXm -lXt -lX11
  88.  
  89. GLDLIBS =  -lgen -lgl -lm -lC
  90. LDIRT = security.mv
  91. LLDOPTS = ${MIPS2}
  92. LLDLIBS =  ${VKLIBS} ${MEDIALIBS} ${VLIBS} ${XLIBS}
  93. LC++OPTS = +a1 +w +p -float -Wf,-XN17500  ${MIPS2}
  94. LC++DEFS = ${DEBUGDEFS} ${QTDEFS} ${DPSDEFS} ${SAVERDEFS}
  95. LCDEFS =  ${DEBUGDEFS}
  96. LCOPTS = ${MIPS2}
  97.  
  98. default all::
  99.     @${MAKE} targets
  100.  
  101. targets:    ${TARGETS}
  102.  
  103. include ${COMMONRULES}
  104. ${OBJECTS}:    ${C++} 
  105.  
  106. titleWraps.o:    titleWraps.psw
  107.     pswrap -o titleWraps.c titleWraps.psw
  108.     ${CCF}  -c titleWraps.c
  109.     rm -rf titleWraps.c
  110.  
  111. security:    ${OBJECTS} ${C++} Makefile
  112.     ${C++F} ${OBJECTS} ${LDFLAGS} -o $@
  113.  
  114. #security.z:    security.1
  115. #    man -d security.1 >> security.z
  116.